package com.djmw.mouse.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.djmw.mouse.entity.Department;

public interface DepartmentDao extends PagingAndSortingRepository<Department, Long>,
        JpaSpecificationExecutor<Department> {

	Page<Department> findByCompanyId(Long id, Pageable pageRequest);
}
